package top.kaoshanji.q1ch07a;

import top.kaoshanji.y1constant.FileConstant;

import java.io.IOException;
import java.io.StringReader;

/**
 * 代码清单-q1ch07a-329页a：从内存输入
 * author kaoshanji
 * ^_^
 * create time 2025/3/12 15:16
 */
public class MemoryInput {

    static String pathStr = FileConstant.LOCAL_ROOT_PATH.concat("q1ch07a329页a\\");

    public static void main(String[] args) throws IOException {

        StringReader in = new StringReader(BufferedInputFile.read(pathStr.concat("MemoryInput.java")));

        int c;
        while ((c = in.read()) != -1) {
            System.out.println((char) c);
        }

    }


}
